macos_playback_session_await_completion

Blocks until the session reaches a terminal state (Finished, Error, or Idle). Returns 0 for Finished, 1 for Error, 2 for Idle (stopped externally).

Call only after macos_playback_session_play returns so a prior generation's terminal state is not observed before the new play transitions.